function GetLocation(elm, fun) {
    var map = new BMap.Map(elm);//创建Map实例，注意页面中一定要有个id为allmp的div
    var point = new BMap.Point(116.331398, 39.897445);//创建定坐标
    map.centerAndZoom(point, 12);//// 初始化地图,设置中心点坐标和地图级别
    var geolocation = new BMap.Geolocation();
    // 开启SDK辅助定位
    geolocation.enableSDKLocation();
    geolocation.getCurrentPosition(function (r) {
        if (this.getStatus() == BMAP_STATUS_SUCCESS) {
            var mk = new BMap.Marker(r.point);
            map.addOverlay(mk);
            map.panTo(r.point);
            var y = r.point.lat;
            var x = r.point.lng;
            $.ajax({
                url: ' https://api.map.baidu.com/reverse_geocoding/v3/?ak=Wh4HAAtaSKPMYpyyOqpxR04BwyTsc5SP&output=json&location=' + y + ',' + x,
                crossDomain: true,
                jsonp: 'callback',
                type: 'POST',
                dataType: 'jsonp',
                success: function (data) {
                    LocationCallBack(data);
                }
            });
        }
        else {
            console.log(this.getStatus());
        }
    });
}